import request from '@/utils/request'
export default {
  getPageList(page, limit, searchObj) {
    return request({
      url: `/serviceedu/coursefront/page/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  // 获取所有课程分类
  getAllSubject() {
    return request({
      url: `/serviceedu/subject/getAllSubject`,
      method: 'get'
    })
  },
  //获取课程基本信息
  getCourseInfoById(courseId){
    return request({
        url: `/serviceedu/coursefront/getCourseInfoById/${courseId}`,
        method: 'get'
    })
  }
}